<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*,com.util.*" errorPage="/error.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员列表</title>
<style type="text/css">
<!--
@import url("../images/css.css");
.style1 {font-size: 13px}
-->
</style>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function gotopage(OtherArg){
	if (OtherArg==null || OtherArg=="null")
	{
		OtherArg="";
	}
	delfrm.action="userlist.jsp?action=gotopage"+OtherArg;
    delfrm.submit(); 
	}
function delit(){
document.delfrm.v1.value="";
if(document.delfrm.deleted.length){
	for(i=0;i<document.delfrm.deleted.length;i++){
		if(document.delfrm.deleted[i].checked){
			document.delfrm.v1.value+=document.delfrm.deleted[i].value + ",";
		}//if
	}//for
}//if
else{
if(document.delfrm.deleted.checked){
	document.delfrm.v1.value+=document.delfrm.deleted.value + ",";
	}//if
}//else
	return confirm("你要删除的管理员id为：" + document.delfrm.v1.value);
}
//-->
function selectidall()
{
	for(i=0;i<document.delfrm.deleted.length;i++)
	{
		document.delfrm.deleted[i].checked = !document.delfrm.deleted[i].checked;
	}
}

</SCRIPT>
<body background="" class="table-bg style1">
<%
	String pageno=null;
	if(request.getParameter("GotoPage")!=null && !request.getParameter("GotoPage").equals(""))
	{
		pageno=request.getParameter("GotoPage");
	}else
	{
		pageno=request.getParameter("pageStart");
	}

	if(pageno==null){pageno="1";}
	int firstno=Integer.parseInt(pageno);

	String sql="select admin_id ,admin_name as '用户名' ,admin_memo as '备注',last_login_time as '最后登录时间' from admin";

	PageDisplay display = new PageDisplay();
	display.addRowClick("1"," target=\"_self\"","editadmin.jsp?id=");
	display.init(request,firstno,20,sql);
	//display.setOtherArg(OtherArg);
	display.setFormAction("/manageadmin");
	String list=display.list();
%>
<%=list%>
</body>
</html>
